/*
 * @Author: '小羊今晚不睡觉' '2226764294@qq.com'
 * @Date: 2025-09-19 15:47:28
 * @LastEditors: 小羊今晚不睡觉 2226764294@qq.com
 * @LastEditTime: 2025-10-09 16:27:25
 * @FilePath: \优工侠后台管理系统\src\router\modules\position.ts
 * @Description: 岗位管理模块路由配置
 */
import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { renderIcon } from '@/utils/index';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/position',
    name: 'Position',
    component: Layout,
    meta: {
      title: '岗位管理',
      icon: renderIcon('/icons/position.png'),
      sort: 2,
    },
    children: [
      {
        path: '',
        name: 'PositionIndex',
        meta: {
          title: '工种类别',
        },
        component: () => import('@/views/position/index.vue'),
      },
      {
        path: 'specific',
        name: 'PositionSpecific',
        meta: {
          title: '具体工种',
        },
        component: () => import('@/views/position/specific.vue'),
      },
    ],
  },
];

export default routes;
